package com.jinmdz.fmis.api.admin.model.rolerelation;

import com.jinmdz.fmis.core.base.BaseBean;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.ArrayList;

/**
 * 角色菜单表格Data
 *
 * @author LiCongLu
 * @date 2020-03-19 11:35
 */
@ApiModel(value = "角色菜单表格Data", description = "角色菜单表格Data")
public class RoleMenuTableData extends BaseBean {
    /**
     * 菜单主键
     */
    @ApiModelProperty(value = "菜单主键", name = "id", position = 1)
    private Integer id;

    /**
     * 父菜单主键
     */
    @ApiModelProperty(value = "父菜单主键", name = "parentId", position = 2)
    private Integer parentId;

    /**
     * 菜单名称
     */
    @ApiModelProperty(value = "菜单名称", name = "menuName", position = 3)
    private String menuName;

    /**
     * 是否关联选中
     */
    @ApiModelProperty(value = "是否关联选中", name = "selected", position = 4)
    private Integer selected;

    /**
     * 关联按钮
     */
    @ApiModelProperty(value = "关联按钮", name = "buttons", position = 5)
    private ArrayList<RoleMenuButtonTableData> buttons;

    public Integer getId() {
        return id;
    }

    public RoleMenuTableData setId(Integer id) {
        this.id = id;
        return this;
    }

    public Integer getParentId() {
        return parentId;
    }

    public RoleMenuTableData setParentId(Integer parentId) {
        this.parentId = parentId;
        return this;
    }

    public String getMenuName() {
        return menuName;
    }

    public RoleMenuTableData setMenuName(String menuName) {
        this.menuName = menuName;
        return this;
    }

    public Integer getSelected() {
        return selected;
    }

    public RoleMenuTableData setSelected(Integer selected) {
        this.selected = selected;
        return this;
    }

    public ArrayList<RoleMenuButtonTableData> getButtons() {
        return buttons;
    }

    public RoleMenuTableData setButtons(ArrayList<RoleMenuButtonTableData> buttons) {
        this.buttons = buttons;
        return this;
    }
}
